package com.thecrackertechnology.andrax;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.view.View;
import android.view.Window;

import com.thecrackertechnology.dragonterminal.bridge.Bridge;

import me.ibrahimsn.particle.ParticleView;

public class Dco_exploitation extends Activity {

    ParticleView particleView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        this.requestWindowFeature(Window.FEATURE_NO_TITLE);

        super.onCreate(savedInstanceState);


        setContentView(R.layout.dco_exploitation);

        particleView = findViewById(R.id.particleView_dco_exploitation);

        CardView cardviewmetasploit = findViewById(R.id.card_view_metasploit);
        CardView cardviewroutersploit = findViewById(R.id.card_view_routersploit);
        CardView cardviewphpsploit = findViewById(R.id.card_view_phpsploit);
        CardView cardviewzsc = findViewById(R.id.card_view_zsc);
        CardView cardviewroptool = findViewById(R.id.card_view_roptool);
        CardView cardviewaflfuzz = findViewById(R.id.card_view_aflfuzz);
        CardView cardviewocs = findViewById(R.id.card_view_ocs);
        CardView cardviewflasm = findViewById(R.id.card_view_flasm);
        CardView cardviewintersect = findViewById(R.id.card_view_intersect);
        CardView cardviewsfuzz = findViewById(R.id.card_view_sfuzz);
        CardView cardviewpacu = findViewById(R.id.card_view_pacu);
        CardView cardviewshellver = findViewById(R.id.card_view_shellver);
        CardView cardviewmcreator = findViewById(R.id.card_view_mcreator);
        CardView cardviewencdecshellcode = findViewById(R.id.card_view_encdecshellcode);
        CardView cardviewgdog = findViewById(R.id.card_view_gdog);
        CardView cardviewsharpshooter = findViewById(R.id.card_view_sharpshooter);
        CardView cardviewautosploit = findViewById(R.id.card_view_autosploit);
        CardView cardviewmikrotaker = findViewById(R.id.card_view_mikrotaker);
        CardView cardviewwpxf = findViewById(R.id.card_view_wpxf);
        CardView cardviewbrakeman = findViewById(R.id.card_view_brakeman);
        CardView cardviewhwacha = findViewById(R.id.card_view_hwacha);
        CardView cardviewshellpop = findViewById(R.id.card_view_shellpop);
        CardView cardviewsmap = findViewById(R.id.card_view_smap);
        CardView cardviewpocsuite = findViewById(R.id.card_view_pocsuite);
        CardView cardviewsingularity = findViewById(R.id.card_view_singulaty);
        CardView cardviewcantoolz = findViewById(R.id.card_view_cantoolz);

        cardviewmetasploit.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("msfconsole");

            }
        });

        /**
         *
         * Help me, i'm dying...
         *
         **/

        cardviewroutersploit.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("rsf");

            }
        });

        cardviewphpsploit.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("phpsploit");

            }
        });

        cardviewzsc.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("zsc");

            }
        });

        cardviewroptool.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("rop-tool");

            }
        });

        cardviewaflfuzz.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("afl-fuzz");

            }
        });


        cardviewocs.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("cisco-ocs");

            }
        });

        cardviewflasm.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("flasm");

            }
        });

        cardviewintersect.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("intersect");

            }
        });

        cardviewsfuzz.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("sfuzz");

            }
        });

        cardviewpacu.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("pacu");

            }
        });

        cardviewshellver.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("shellver -h");

            }
        });

        cardviewmcreator.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("mcreator");

            }
        });

        cardviewencdecshellcode.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("encdecshellcode");

            }
        });

        cardviewgdog.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("gdog");

            }
        });

        cardviewsharpshooter.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("sharpshooter -h");

            }
        });

        cardviewautosploit.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("autosploit");

            }
        });

        cardviewmikrotaker.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("mikrotaker");

            }
        });

        cardviewwpxf.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("wpxf");

            }
        });

        cardviewbrakeman.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("brakeman -h");

            }
        });

        cardviewhwacha.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("hwacha");

            }
        });

        cardviewshellpop.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("shellpop -h");

            }
        });

        cardviewsmap.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("smap -h");

            }
        });

        cardviewpocsuite.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("pocsuite");

            }
        });

        cardviewcantoolz.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("cantoolz");

            }
        });

        cardviewsingularity.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {

                run_hack_cmd("singularity");

            }
        });

    }

    public void run_hack_cmd(String cmd) {

        Intent intent = Bridge.createExecuteIntent(cmd);
        startActivity(intent);

    }

    @Override
    public void onPause() {
        particleView.pause();
        super.onPause();
        finish();
    }
}
